﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp2
{
    class Student
    {
        private int no;
        private string name;
        private int age;

        public Student() { }
        public Student(int no, string name, int age)
        {
            this.no = no;
            this.name = name;
            this.age = age;
        }

        public int No { get => no; set => no = value; }
        public string Name { get => name; set => name = value; }
        public int Age { get => age; set => age = value; }

        public override string ToString()
        {
            return $"学号{no},姓名{name},年龄{age}";
        }
    }
}
